package com.xyj.action;

import com.xyj.action.base.BaseAction;
import com.xyj.dao.base.BaseDaoI;
import com.xyj.service.MenuServiceI;
import com.xyj.service.RepairServiceI;
import com.xyj.util.LoggerUtil;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created by 徐宇健 on 2015/2/12 0012.
 */
@Action("repairAction")
public class RepairAction  extends BaseAction {

    private RepairServiceI repairService;

    public RepairServiceI getRepairService() {
        return repairService;
    }
    @Autowired
    public void setRepairService(RepairServiceI repairService) {
        this.repairService = repairService;
    }

    public  void init(){
        LoggerUtil.getLogger().info(">>>>>init System start >>>>");
        repairService.repair();
        LoggerUtil.getLogger().info(">>>>>init System end   >>>>");
    }
}
